from django import template

register = template.Library()

@register.inclusion_tag('mypaginator.html')
def mypaginator(total, current_num):
    total = range(1, total+1)
    current_num = current_num
    return locals()
